import { FormCards } from './formCard';

export const GroupCard = [
  {
    name: '基础卡片',
    groupCards: Object.keys(FormCards)
      .filter((key) => FormCards[key].group === 'basic')
      .map((key) => FormCards[key]),
  },
  {
    name: '布局卡片',
    groupCards: Object.keys(FormCards)
      .filter((key) => FormCards[key].group === 'layout')
      .map((key) => FormCards[key]),
  },

  {
    name: '系统卡片',
    groupCards: Object.keys(FormCards)
      .filter((key) => FormCards[key].group === 'system')
      .map((key) => FormCards[key]),
  },

  {
    name: '高级卡片',
    groupCards: Object.keys(FormCards)
      .filter((key) => FormCards[key].group === 'advanced')
      .map((key) => FormCards[key]),
  },
];
